﻿using System;

namespace Demo
{
    class Program
    {
        static void Main(string[] args)
        {
            Class1 user = new Class1();
            Class2 pub = new Class2();
            Class3 Book = new Class3();
            user.Name = "小米";
            user.Age = 18;
            user.Sex = '女';

            pub.PubName = "北京出版社";
            pub.Add = "北京";
            pub.Name = "小麦";

            Book.Num = 1;
            Book.BookName = "西游记";
            Book.Writer = "吴承恩";
            Book.Money = 55;
            Console.WriteLine("姓名：{0} 年龄：{1} 性别：{2} ", user.Name, user.Age, user.Sex);
            Console.WriteLine("出版社名称：{0} 出版社地址：{1} 联系人：{2} ", pub.PubName, pub.Add, pub.Name);
            Console.WriteLine("编码：{0} 书名：{1} 作者：{2} 书价：{3} ", Book.Num, Book.BookName, Book.Writer,
                Book.Money);
        }
    }
}
